package sharedObjects;

import java.io.Serializable;

public class ObjectWrapper implements Serializable {
	/**
	 * @author Mars
	 */
	private static final long serialVersionUID = -669124753077730893L;

	//Sagt dem Clienten und dem Server, welche Objektart dies ist.
	
	public static Byte HITNOTIFICATION_OTHER = 0x00;
	public static Byte HITNOTIFICATION_ME = 0x01;
	public static Byte SHIP_STORAGE = 0x02;
	public static Byte NEXT_PLAYER = 0x03;
	public static Byte STATUS_MESSAGE = 0x04;
	
	private Byte objectType;
	

	private Object gameObject = null;

	public Object getGameObject() {
		return gameObject;
	}

	public void setGameObject(Object gameObject) {
		this.gameObject = gameObject;
	}

	public ObjectWrapper(Object go, Byte ot) {
		objectType = ot;
		gameObject = go;
	}
	public Byte getObjectType() {
		return objectType;
	}

	public void setObjectType(Byte objectType) {
		this.objectType = objectType;
	}

}
